<template>
    <div>
              <wxc-minibar  title="详情" >
            </wxc-minibar>
           <web 
        ref="webview"
        :style="contentStyle"
        :src="hrefUrl"
    >
    </web>
    </div>
     
</template>
<script>
import WxcMinibar from "@/components/modules/wxc-minibar/index.js"
    import {
    serialize,
    getBaseUrl,
    jsonAnalysis

} from "@/utils/index.js";
import { Utils } from "weex-ui"
export default{
    components:{
        WxcMinibar
    },
    data(){
        return{
            hrefUrl:'',
            contentStyle:{},
        }
    },
    created(){
         const tabPageHeight = Utils.env.getPageHeight();
         this.contentStyle = {
            height: tabPageHeight + "px",
            width: "750px"
		}
    },
    mounted(){
          this.getUrlParam();
    },
    methods:{
         getUrlParam() {
            var url = decodeURI(weex.config.bundleUrl); //取得整个地址栏
            let query1 = jsonAnalysis(url.split("?")[1]);
            this.hrefUrl=`${query1.url}?view=${query1.view}`;
         }
    }
}
</script>
<style>


</style>